package 内部类;
//成员内部类
public class Outer {
    private String a = "Outer";

    public class Inner{
        String a = "Inner";
        private void fun(){
            System.out.println(a);//内部类的a
            System.out.println("----");
            System.out.println(Outer.this.a);//外部类的a
        }
    }

    public static void main(String[] args) {
        /*Outer outer = new Outer();
        Inner inner = outer.new Inner();*/
        Inner inner = new Outer().new Inner();
        inner.fun();
    }
}
